package com.szt.school.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

//@Controller
@Slf4j
//@RequestMapping("/error")
public class BaseErrorController implements ErrorController {

   @Override
    public String getErrorPath() {
        return null;
    }


/*    @Override
    public String getErrorPath() {
        log.debug("出现错误，跳转进错误页面");
        return "error/error";
    }
    @RequestMapping
    public String error(){
        return getErrorPath();
    }*/
}
